name = open("./name.txt")
pic = open("./pic.txt")
artist = open("./artist.txt")
music = open("./music.txt")
lrc = open("./lrc.txt")
write = "./write.txt"
name1 = "./name.txt"
pic1 = "./pic.txt"
artist1 = "artist.txt"
music1 = "./music.txt"
lrc1 = "./lrc.txt"

li = 0
while True:
    if li <= 22:
        for line in name:
            print(line)
            with open(write, 'a') as lines:
                lines.write("{\n")
                lines.write("  " + line)
                li += 1
            break
        for line in artist:
            print(line)
            with open(write, 'a') as lines:
                lines.write("  " + line)
                # li += 1
            break
        for line in pic:
            print(line)
            with open(write, 'a') as lines:
                lines.write("  " + line)
                # li += 1
            break
        for line in music:
            print(line)
            with open(write, 'a') as lines:
                lines.write("  " + line)
                # li += 1
            break
        for line in lrc:
            print(line)
            with open(write, 'a') as lines:
                lines.write("  " + line)
                lines.write("},")
                # li += 1
            break
    else:
        exit() # 退出不了,不过不会死讯还!
else:
    exit()